﻿<CascadingValue Value="Tabs" IsFixed="true">
    @ChildContent
</CascadingValue>

<ul>
    @foreach (var item in Tabs)
    {
        <li>@(Tabs.IndexOf(item)) - @item.ChildContent</li>
    }
</ul>

@code {
    private List<Tab> Tabs { get; set; } = new List<Tab>();

    [Parameter]
    public RenderFragment ChildContent { get; set; }
}
